package com.lihan.GetSeatInLib.Controllers;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.lihan.GetSeatInLib.Service.TestService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;



@RestController
@Api(tags = "测试显示接口")
@RequestMapping("/Test")
public class TestController {
	
	@Autowired
	private TestService testService;
	
	@ApiOperation("得到你自己填写的值")
	@RequestMapping(method = RequestMethod.GET,path = "/shit")
	public String GetReturn(String str) {
//		ValueOperations ops = template.opsForValue();
//		ops.set("Key123", str);
		testService.TestMehtodOneCacheableTest(str);
		return str;
	}

}
